import axios from '@/utils/request'

/**
 * 用户登录
 * @param {Number} mobile 手机号
 * @param {Number} code  验证码
 * @returns
 */
export const userLogin = (mobile, code) =>
  axios({
    method: 'POST',
    url: '/v1_0/authorizations',
    data: {
      mobile,
      code
    }
  })
